home *** CD-ROM | disk | FTP | other *** search
- Public Class CountdownForm
- Inherits System.Windows.Forms.Form
-
- #Region " Windows Form Designer generated code "
-
- Public Sub New()
- MyBase.New()
-
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
-
- 'Add any initialization after the InitializeComponent() call
-
- End Sub
-
- 'Form overrides dispose to clean up the component list.
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
- Friend WithEvents Button1 As System.Windows.Forms.Button
- Friend WithEvents CountdownLabel1 As CustomControlDemo.CountdownLabel
- Friend WithEvents CountdownLabel2 As CustomControlDemo.CountdownLabel
- Friend WithEvents Button2 As System.Windows.Forms.Button
- Friend WithEvents CountdownLabel3 As CustomControlDemo.CountdownLabel
- Friend WithEvents Button3 As System.Windows.Forms.Button
- Friend WithEvents CountdownLabel4 As CustomControlDemo.CountdownLabel
- Friend WithEvents Button4 As System.Windows.Forms.Button
- Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
-
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.Container
-
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.Button2 = New System.Windows.Forms.Button()
- Me.Button3 = New System.Windows.Forms.Button()
- Me.CountdownLabel4 = New CustomControlDemo.CountdownLabel()
- Me.CountdownLabel1 = New CustomControlDemo.CountdownLabel()
- Me.Button4 = New System.Windows.Forms.Button()
- Me.CountdownLabel3 = New CustomControlDemo.CountdownLabel()
- Me.CountdownLabel2 = New CustomControlDemo.CountdownLabel()
- Me.Button1 = New System.Windows.Forms.Button()
- Me.MainMenu1 = New System.Windows.Forms.MainMenu()
- Me.SuspendLayout()
- '
- 'Button2
- '
- Me.Button2.Location = New System.Drawing.Point(24, 136)
- Me.Button2.Name = "Button2"
- Me.Button2.Size = New System.Drawing.Size(88, 32)
- Me.Button2.TabIndex = 5
- Me.Button2.Text = "Start"
- '
- 'Button3
- '
- Me.Button3.Location = New System.Drawing.Point(272, 32)
- Me.Button3.Name = "Button3"
- Me.Button3.Size = New System.Drawing.Size(88, 32)
- Me.Button3.TabIndex = 5
- Me.Button3.Text = "Start"
- '
- 'CountdownLabel4
- '
- Me.CountdownLabel4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
- Me.CountdownLabel4.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.CountdownLabel4.Location = New System.Drawing.Point(384, 136)
- Me.CountdownLabel4.Name = "CountdownLabel4"
- Me.CountdownLabel4.Size = New System.Drawing.Size(112, 80)
- Me.CountdownLabel4.TabIndex = 6
- '
- 'CountdownLabel1
- '
- Me.CountdownLabel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
- Me.CountdownLabel1.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.CountdownLabel1.Location = New System.Drawing.Point(136, 32)
- Me.CountdownLabel1.Name = "CountdownLabel1"
- Me.CountdownLabel1.Size = New System.Drawing.Size(112, 80)
- Me.CountdownLabel1.TabIndex = 6
- '
- 'Button4
- '
- Me.Button4.Location = New System.Drawing.Point(272, 136)
- Me.Button4.Name = "Button4"
- Me.Button4.Size = New System.Drawing.Size(88, 32)
- Me.Button4.TabIndex = 5
- Me.Button4.Text = "Start"
- '
- 'CountdownLabel3
- '
- Me.CountdownLabel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
- Me.CountdownLabel3.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.CountdownLabel3.Location = New System.Drawing.Point(384, 32)
- Me.CountdownLabel3.Name = "CountdownLabel3"
- Me.CountdownLabel3.Size = New System.Drawing.Size(112, 80)
- Me.CountdownLabel3.TabIndex = 6
- '
- 'CountdownLabel2
- '
- Me.CountdownLabel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
- Me.CountdownLabel2.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.CountdownLabel2.Location = New System.Drawing.Point(136, 136)
- Me.CountdownLabel2.Name = "CountdownLabel2"
- Me.CountdownLabel2.Size = New System.Drawing.Size(112, 80)
- Me.CountdownLabel2.TabIndex = 6
- '
- 'Button1
- '
- Me.Button1.Location = New System.Drawing.Point(24, 32)
- Me.Button1.Name = "Button1"
- Me.Button1.Size = New System.Drawing.Size(88, 32)
- Me.Button1.TabIndex = 5
- Me.Button1.Text = "Start"
- '
- 'CountdownForm
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(7, 17)
- Me.ClientSize = New System.Drawing.Size(520, 253)
- Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.CountdownLabel4, Me.Button4, Me.CountdownLabel3, Me.Button3, Me.CountdownLabel2, Me.Button2, Me.CountdownLabel1, Me.Button1})
- Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.Menu = Me.MainMenu1
- Me.Name = "CountdownForm"
- Me.Text = "Form1"
- Me.ResumeLayout(False)
-
- End Sub
-
- #End Region
-
-
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- CountdownLabel1.StartCountdown(5)
- End Sub
-
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- CountdownLabel2.StartCountdown(8)
- End Sub
-
-
- Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
- CountdownLabel3.StartCountdown(10)
- End Sub
-
- Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
- CountdownLabel4.StartCountdown(12)
- End Sub
- End Class
-